import { AbstractModelPermissionPK, SparrowEntity } from "./sparrow";

export interface LevelRelationPK{
  roleId: string;
  parentId:string;
}

export interface LevelRelation{
  id:LevelRelationPK
}

export interface Level extends SparrowEntity{
  code?:string,
  name?:string,
  stat?:string,
  isRoot?: boolean,
  organizationIds?: string[],
}

export interface OrganizationLevelPK{
  levelId: string;
  organizationId: string;
}

export interface OrganizatioinLevelRelationPK{
  id: OrganizationLevelPK;
  parentId: OrganizationLevelPK;
}

export interface OrganizationLevel{
  id: OrganizationLevelPK;
  stat: string;
}

export interface OrganizationLevelRelation{
  id: OrganizatioinLevelRelationPK;
}

export interface LevelModelPermissionPK extends AbstractModelPermissionPK{
  levelId: string;
}
